package com.n9.qq.android.RegisterProxySvcPack;

import com.qq.taf.jce.JceInputStream;
import com.qq.taf.jce.JceOutputStream;
import com.qq.taf.jce.JceStruct;

/**
 * @author ice
 * @since 2019/3/4 9:52
 */
public final class SvcReqGet extends JceStruct {
    public byte bIsShowOnline = 0;
    public byte bOnlinePush = 0;
    public byte cConnType = 0;
    public int iClientId = 0;
    public int iClientIp = 0;
    public int iClientPort = 0;
    public int iSSOIp = 0;
    public int iSSOPort = 0;
    public int iStatus = 11;
    public long lBid = 0L;
    public long lUin = 0L;
    public String sOther = "";
    public byte[] vecGuid = null;

    public SvcReqGet() {
    }

    public SvcReqGet(long var1, long var3, String var5, int var6, byte var7, byte var8, byte var9, int var10, int var11, int var12, int var13, int var14, byte[] var15) {
        this.lUin = var1;
        this.lBid = var3;
        this.sOther = var5;
        this.iStatus = var6;
        this.bOnlinePush = var7;
        this.cConnType = var8;
        this.bIsShowOnline = var9;
        this.iSSOIp = var10;
        this.iSSOPort = var11;
        this.iClientIp = var12;
        this.iClientPort = var13;
        this.iClientId = var14;
        this.vecGuid = var15;
    }

    @Override
    public void readFrom(JceInputStream var1) {
        this.lUin = var1.read(this.lUin, 0, true);
        this.lBid = var1.read(this.lBid, 1, true);
        this.sOther = var1.readString(2, true);
        this.iStatus = var1.read(this.iStatus, 3, false);
        this.bOnlinePush = var1.read(this.bOnlinePush, 4, false);
        this.cConnType = var1.read(this.cConnType, 5, false);
        this.bIsShowOnline = var1.read(this.bIsShowOnline, 6, false);
        this.iSSOIp = var1.read(this.iSSOIp, 7, false);
        this.iSSOPort = var1.read(this.iSSOPort, 8, false);
        this.iClientIp = var1.read(this.iClientIp, 9, false);
        this.iClientPort = var1.read(this.iClientPort, 10, false);
        this.iClientId = var1.read(this.iClientId, 11, false);
        if (vecGuid == null) {
            vecGuid = (byte[])(new byte[1]);
            ((byte[])vecGuid)[0] = 0;
        }

        this.vecGuid = (byte[])var1.read(vecGuid, 12, false);
    }

    @Override
    public void writeTo(JceOutputStream var1) {
        var1.write(this.lUin, 0);
        var1.write(this.lBid, 1);
        var1.write(this.sOther, 2);
        var1.write(this.iStatus, 3);
        var1.write(this.bOnlinePush, 4);
        var1.write(this.cConnType, 5);
        var1.write(this.bIsShowOnline, 6);
        var1.write(this.iSSOIp, 7);
        var1.write(this.iSSOPort, 8);
        var1.write(this.iClientIp, 9);
        var1.write(this.iClientPort, 10);
        var1.write(this.iClientId, 11);
        if (this.vecGuid != null) {
            var1.write(this.vecGuid, 12);
        }

    }
}